//
// Created by tview on 2021/8/2.
//

#ifndef SIMPLE_PLAYER_BASEMOUDLE_H
#define SIMPLE_PLAYER_BASEMOUDLE_H

#include<memory>
#include <Looper.h>
#include <log.h>

class MediaPlayer;
using namespace std;


class BaseModule : public enable_shared_from_this<BaseModule> , public Looper::CallBack {

public:

    virtual bool Open(void *path) = 0;

    virtual bool start() = 0;


protected:
    shared_ptr<Looper> mLooper;
    weak_ptr<MediaPlayer> mPlayer;


};

#endif //SIMPLE_PLAYER_BASEMOUDLE_H
